<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<jsp:include page="head.htm" />
<link rel="stylesheet" type="text/css" href="css/style1.css" />
</head>
<body>
	<img src="images/hitch_banner.jpg"/>
	<div id="head">
		<h1>Hitch</h1>
	</div>
	<div id="content">
		<%@ include file="menu.jsp"%>

<p>"${possibleToRegister}"</p>

		<c:choose>
			<c:when test="${possibleToRegister==1}">can register
		<form:form method="post" action="registertotour.html"
					modelAttribute="tour">
					<fieldset>
						<div class="hidden">
							<form:hidden path="id" />
						</div>
						<div class="form-buttons">
							<div class="button">
								<input name="submit" id="register" type="submit"
									value="<fmt:message key="button.registertotour"/>" />
							</div>
						</div>
					</fieldset>
				</form:form>
			</c:when>
			<c:when test="${possibleToRegister==0}">can NOT register
		<form:form method="post" action="unregisterfromtour.html"
					modelAttribute="tour">
					<fieldset>
						<div class="hidden">
							<form:hidden path="id" />
						</div>
						<div class="form-buttons">
							<div class="button">
								<input name="submit" id="unregister" type="submit"
									value="<fmt:message key="button.unregisterfromtour"/>" />
							</div>
						</div>
					</fieldset>
				</form:form>
			</c:when>
			<c:when test="${possibleToRegister==2}">Tour is full!
			</c:when>
		</c:choose>

	</div>
</body>
</html>
